package com.yanqu.road.logic.bussiness.cross;

import com.yanqu.road.entity.activity.ActivityDisperseGoldInfo;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.Map;

public class ActivityDisperseGoldBussiness {

    public static Map<Long, ActivityDisperseGoldInfo> getCrossDisperseGoldInfoMap() {
        return DaoHelper.getCrossActivityDisperseGoldDaoImpl().getDisperseGoldMap();
    }

    public static long getMaxDisperseId() {
        return DaoHelper.getCrossActivityDisperseGoldDaoImpl().getMaxDisperseId();
    }

    public static boolean addCrossActivityDisperseGoldInfo(ActivityDisperseGoldInfo goldInfo) {
        return DaoHelper.getCrossActivityDisperseGoldDaoImpl().add(goldInfo);
    }

    public static boolean updateCrossActivityDisperseGoldInfo(ActivityDisperseGoldInfo goldInfo) {
        return DaoHelper.getCrossActivityDisperseGoldDaoImpl().update(goldInfo);
    }


}
